package com.woniu.order.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-08
 */
@TableName("t_order")
@ApiModel(value = "TOrder对象", description = "0")
public class TOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty("订单类型")
    private String typeName;

    @ApiModelProperty("运输类型")
    private String tranType;

    @ApiModelProperty("客户名称")
    private String username;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty("起点城市")
    private String beginCity;

    @ApiModelProperty("终点城市")
    private String endCity;
    @ApiModelProperty("货物对象")
    @TableField(exist = false)
    private TGoods goods;
    @ApiModelProperty("运输表对象")
    @TableField(exist = false)
    private TLogistics logistics;

    public TGoods getGoods() {
        return goods;
    }

    public void setGoods(TGoods goods) {
        this.goods = goods;
    }

    public TLogistics getLogistics() {
        return logistics;
    }

    public void setLogistics(TLogistics logistics) {
        this.logistics = logistics;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public String getTranType() {
        return tranType;
    }

    public void setTranType(String tranType) {
        this.tranType = tranType;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getBeginCity() {
        return beginCity;
    }

    public void setBeginCity(String beginCity) {
        this.beginCity = beginCity;
    }
    public String getEndCity() {
        return endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity;
    }

    @Override
    public String toString() {
        return "TOrder{" +
                "orderId=" + orderId +
                ", typeName='" + typeName + '\'' +
                ", tranType='" + tranType + '\'' +
                ", username='" + username + '\'' +
                ", orderTime=" + orderTime +
                ", beginCity='" + beginCity + '\'' +
                ", endCity='" + endCity + '\'' +
                ", goods=" + goods +
                ", logistics=" + logistics +
                '}';
    }
}
